package me.sheimi.sgit.activities.delegate.actions;

import android.app.AlertDialog;
import android.view.LayoutInflater;

import androidx.databinding.DataBindingUtil;

import me.sheimi.sgit.R;
import me.sheimi.sgit.activities.RepoDetailActivity;
import me.sheimi.sgit.database.models.GitConfig;
import me.sheimi.sgit.database.models.Repo;
import me.sheimi.sgit.databinding.DialogRepoConfigBinding;
import me.sheimi.sgit.exception.StopTaskException;
import me.sheimi.sgit.repo.tasks.repo.AddToStageTask;
import me.sheimi.sgit.repo.tasks.repo.DiffLocalTask;
import timber.log.Timber;

/**
 * Action to display configuration for a Repo
 */
public class DiffLocalAction extends RepoAction {


    public DiffLocalAction(Repo repo, RepoDetailActivity activity) {
        super(repo, activity);
    }

    @Override
    public void execute() {
        DiffLocalTask diffLocalTask = new DiffLocalTask(mRepo);
        diffLocalTask.executeTask();
        mActivity.closeOperationDrawer();
    }

}
